pin = 0 -- D4 LED
xxz = 4
-- SET gpio模式为输出模式
gpio.mode(pin,gpio.OUTPUT)
gpio.mode(xxz,gpio.OUTPUT)
while 1 do
    gpio.write(pin,gpio.HIGH)  -- 设置高电频
    tmr.delay(1000 * 50) -- us * 1000 * 50  => 50ms
    gpio.write(pin,gpio.LOW)   -- set 低电频
    tmr.delay(1000 * 50)

    gpio.write(xxz,gpio.HIGH)  -- 设置高电频
    tmr.delay(1000 * 50) -- us * 1000 * 50  => 50ms
    gpio.write(xxz,gpio.LOW)   -- set 低电频
    tmr.delay(1000 * 50)
end
